from django.urls import path
from . import apk_views
from . import sign_views
from .sign_views import SignViewSet, SignComposeViewSet

sign = SignViewSet.as_view({
    'get': 'list',
    'post': 'create'
    
})
sign_delete = SignViewSet.as_view({
    'delete': 'destroy'
})

sign_compose = SignComposeViewSet.as_view({
    'get': 'list',
    'post': 'create'
})
sign_compose_delete = SignComposeViewSet.as_view({
    'delete': 'destroy'
})

urlpatterns = [
    path('installApk/', apk_views.upload_install_file),
    path('getInstallApk/', apk_views.get_install_apk),
    path('tools/', apk_views.get_tools_apk),
    path('sign/', sign),
    path('sign/<int:pk>/', sign_delete),
    path('signCompose/', sign_compose),
    path('signCompose/<int:pk>/', sign_compose_delete),
    path('uploadSignApk/', sign_views.upload_sign_apk),
    path('signApk/', sign_views.sign),
    path('signResultZip/', sign_views.get_sign_zip_file),
    path('signResultFile/', sign_views.get_sign_file)
]
